<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="/dacan/Public/Admin/css/base.css" />
	<link rel="stylesheet" href="/dacan/Public/Admin/css/login.css" />
	<title>东莞大昌机床管理系统</title>
</head>
<body>
<!--管理员登录的页面-->
	<div id="container"><form action="<?php echo U('checkLogin');?>" method="post">
		<div id="bd">
			<div class="login1">
            	<div class="login-top"><h1 class="logo"><a>东莞大昌机床</a></h1></div>
				<!--表单验证-->

					<div class="login-input">
						<p class="user ue-clear">
							<label>用户名</label>
							<input type="text" name="username" />
						</p>
						<p class="password ue-clear">
							<label>密&nbsp;&nbsp;&nbsp;码</label>
							<input type="password" name="upwd" />
						</p>
						<p class="yzm ue-clear">
							<label>验证码</label>
							<input type="text" name="captcha" maxlength="4" />
					<cite>
						<img style="margin-left: 3px;" src="/dacan/index.php/Admin/Index/captcha"
							 onclick="this.src='/dacan/index.php/Admin/Index/captcha/t/'+Math.random()" />
							</cite>

						</p>
					</div>
					<div class="login-btn ue-clear">
						<a href="javascript:;" class="btn" >登录</a>
						<div class="remember ue-clear">
						</div> </div>



            </div>
		</div>
	</form>
	</div>
    <div id="ft">Copyright &copy; 2018 版权所有：东莞大昌机床有限公司 </div>
</body>
<script type="text/javascript" src="/dacan/Public/Admin/js/jquery.js"></script>
<script type="text/javascript" src="/dacan/Public/Admin/js/common.js"></script>
<script type="text/javascript">
var height = $(window).height();
$("#container").height(height);
$("#bd").css("padding-top",height/2 - $("#bd").height()/2);

$(window).resize(function(){
	var height = $(window).height();
	$("#bd").css("padding-top",$(window).height()/2 - $("#bd").height()/2);
	$("#container").height(height);
	
});

$('#remember').focus(function(){
   $(this).blur();
});

$('#remember').click(function(e) {
	checkRemember($(this));
});

function checkRemember($this){
	if(!-[1,]){
		 if($this.prop("checked")){
			$this.parent().addClass('checked');
		}else{
			$this.parent().removeClass('checked');
		}
	}
}
$(function(){
	//给登录按钮绑定点击事件  表单的提交
	$('.btn').on('click',function(){
		//事件处理程序
		$('form').submit();
	});
});

</script>
</html>